<h1>Notes List</h1>

<table>
  <thead>
    <tr>
      <th>Noteid</th>
      <th>Taskid</th>
      <th>Notedetail</th>
      <th>Createdby</th>
      <th>Createdate</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($notes as $note): ?>
    <tr>
      <td><a href="<?php echo url_for('note/show?noteid='.$note->getNoteid()) ?>"><?php echo $note->getNoteid() ?></a></td>
      <td><?php echo $note->getTaskid() ?></td>
      <td><?php echo $note->getNotedetail() ?></td>
      <td><?php echo $note->getCreatedby() ?></td>
      <td><?php echo $note->getCreatedate() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>
<?php
if ($sf_user->hasPermission("note.create"))
{
?>
  <a href="<?php echo url_for('note/new') ?>">New</a>
<?php
}
?>